/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rukopisyimport.analysis;

import java.io.File;
import java.util.HashSet;
import java.util.Set;

/**
 *
 * @author Martin Rehanek (rehan@mzk.cz)
 */
public class AnalyzisResult {

    private final Set<File> allDocuments = new HashSet<File>();
    private final Set<File> digitalizedDocuments = new HashSet<File>();

    public Set<File> getAllDocuments() {
        return allDocuments;
    }

    public Set<File> getDigitalizedDocuments() {
        return digitalizedDocuments;
    }

    public void addFiles(Set<File> allFiles, Set<File> digitalizedFiles) {
        allFiles.addAll(allFiles);
        digitalizedFiles.addAll(digitalizedFiles);
    }

    public void addFile(File file, boolean digitalized) {
        allDocuments.add(file);
        if (digitalized) {
            digitalizedDocuments.add(file);
        }
    }
}
